<template>
	<view class="exams">
		<view class="progressWrap">
			<view class="progress">
				<progress :percent="currPercent" stroke-width="8" active-mode="forwards" backgroundColor="#ffffff" activeColor="#ffa510" :active="animationFlag"/>
			</view>
			<view class="totalQue">共{{queLen}}题</view> 
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			currPage:{
				type:String,
				default:'quePage'
			},
			animationFlag:{
				type:Boolean,
				default:true
			},
			currPercent:{
				type:Number
			},
			queLen:{
				type:Number
			}
		},
		methods:{
			
		}
	}
</script>

<style lang='scss' scoped>
	.exams{
		width: 100%;
		background: #fff;
		box-shadow: 0 5rpx 8rpx rgba(0,0,0,0.02);
		position: fixed;
		left: 0;
		@include respTo(phone){
			top: calc(90rpx + var(--status-bar-height));
		}
		@include respTo(pad){
			top: calc(70rpx + var(--status-bar-height));
		}
		z-index: 10;
	}
	.progressWrap{
		display: flex;
		justify-content: space-between;
		align-items: center;
		@include respTo(phone){
			height: 90rpx;
			padding: 0 30rpx;
		}
		@include respTo(pad){
			height: 70rpx;
			padding: 0 20rpx;
		}
		.totalQue{
			color: $pss-text-color3;
			@include respTo(phone){
				font-size: $font-size30;
			}
			@include respTo(pad){
				font-size: $padSize20;
			}
		}
		.progress{
			width: 80%;
			margin: 0 10rpx;
		}
	}
	::v-deep{
		.uni-progress-bar {
			border-radius: 20rpx;  
			box-shadow: 0 0 6px rgba(0,0,0,.1);
		}  
		.uni-progress-inner-bar {  
			border-radius: 20rpx;  
		}
	}
</style>